package book.security;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.security.Timestamp;
import java.security.cert.CertPath;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.util.Date;

public class TimeStampTest {

	public static void main(String[] args) throws CertificateException, FileNotFoundException {
		
		CertificateFactory factory = CertificateFactory.getInstance("x509");
		CertPath cp = factory.generateCertPath(new FileInputStream("/Users/apple/Documents/demo.cer"));
		Timestamp t = new Timestamp(new Date(), cp);
	}
}
